package com.db.login;

import java.util.*;
import java.sql.*;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class JoinManager extends SqlMapClientDaoSupport implements Join {

	public int IdCheck(String id) throws SQLException {
		return (Integer) getSqlMapClientTemplate()
				.queryForObject("checkid", id);
	}

	public int JuminCheck(String jumin) throws SQLException {
		return (Integer) getSqlMapClientTemplate().queryForObject("checkJumin",
				jumin);
	}

	public void isLogin(Map map) throws SQLException {
		getSqlMapClientTemplate().queryForObject("isLogin", map);
	}

	public void OkJoin(Map vo) throws SQLException {
		getSqlMapClientTemplate().queryForObject("OkJoin", vo);
	}

	public void delete(Map vo) throws SQLException {
		getSqlMapClientTemplate().queryForObject("delete", vo);
	}

	public void update(Map vo) throws SQLException {
		getSqlMapClientTemplate().queryForObject("update", vo);
	}

	public void update_ok(Map vo) throws SQLException {
		getSqlMapClientTemplate().queryForObject("update_ok", vo);
	}

}
